//
//  TongCollectionViewCell.m
//  HIGHT
//
//  Created by 夜空 on 2017/11/2.
//  Copyright © 2017年 夜空. All rights reserved.
//

#import "TongCollectionViewCell.h"
#import "Masonry/Masonry.h"

@implementation TongCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self != nil){
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews
{
    self.label=[[UILabel alloc] initWithFrame:CGRectMake(0, 0,100 , 40)];
   
    
    
    
    self.label.textColor=[UIColor blackColor];
    self.label.font= [UIFont systemFontOfSize:15];
    self.label.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:self.label];
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.contentView.mas_top);
        make.left.mas_equalTo(10);
        make.height.mas_equalTo(40);
    }];
    
}

- (void)refreshData:(NSString*)str;
{
    self.label.text=str;
    
    
}
@end
